import request from '@/plugin/axios/another'

/**
 * 获取展厅分页列表
 * @param {*} data {pageSize pageNum dynasty keyword}
 */
export function getShowroomPage (data) {
  return request({
    url: '/showroom/getShowroomPage',
    method: 'get',
    params: data
  })
}

/**
 * 获取展厅详情
 * @param {*} data {showroomId}
 */
export function getShowroomDetail (data) {
  return request({
    url: '/showroom/getShowroomDetail',
    method: 'get',
    params: data
  })
}

/**
 * 添加展厅
 * @param {*} data {}
 */
export function addShowroom (data) {
  return request({
    url: '/showroom/addShowroom',
    method: 'post',
    params: data
  })
}

/**
 * 修改展厅
 * @param {*} data {}
 */
export function updateShowroom (data) {
  return request({
    url: '/showroom/updateShowroom',
    method: 'POST',
    params: data
  })
}

/**
 * 开放/关闭展厅
 * @param {*} data {}
 */
export function updateShowroomStatus (data) {
  return request({
    url: '/showroom/updateShowroomStatus',
    method: 'POST',
    params: data
  })
}

/**
 * 获取展厅藏品分页列表
 * @param {*} data {}
 */
export function getShowroomCollectionPage (data) {
  return request({
    url: '/showroomCollection/getShowroomCollectionPage',
    method: 'get',
    params: data
  })
}

/**
 * 获取展厅藏品详情
 * @param {*} data {showroomCollectionId}
 */
export function getShowroomCollectionDetail (data) {
  return request({
    url: '/showroomCollection/getShowroomCollectionDetail',
    method: 'get',
    params: data
  })
}

/**
 * 添加展厅藏品
 * @param {*} data {}
 */
export function addShowroomCollection (data) {
  return request({
    url: '/showroomCollection/addShowroomCollection',
    method: 'get',
    params: data
  })
}

/**
 * 修改展厅藏品
 * @param {*} data {}
 */
export function updateShowroomCollection (data) {
  return request({
    url: '/showroomCollection/updateShowroomCollection',
    method: 'get',
    params: data
  })
}

/**
 * 开放/关闭展厅藏品
 * @param {*} data
 */
export function updateShowroomCollectionStatus (data) {
  return request({
    url: '/showroomCollection/updateShowroomCollectionStatus',
    method: 'get',
    params: data
  })
}
